package com.设计模式.state1;

/**
 * @Date 2022/9/7 22:47
 * @Author WangLinBao
 * @Description
 */
public class RaffleActivity {
    private State state;
    private int prizeNum = 0;

    public final State dispenseState = new DispenseState(this);
    public final State noRaffleState = new NoRaffleState(this);
    public final State canRaffleState = new CanRaffleState(this);
    public final State dispenseOutState = new DispenseOutState(this);

    public RaffleActivity(State state, int prizeNum) {
        this.state = state;
        this.prizeNum = prizeNum;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public int getPrizeNum() {
        return prizeNum;
    }

    public void setPrizeNum(int prizeNum) {
        this.prizeNum = prizeNum;
    }





}
